package com.baizhi.dao;

import com.baizhi.entity.Article;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by Administrator on 2019/4/7.
 */
public interface AtricleDao {

    Integer selectAllArticleCount(@Param("articleName") String articleName);
    List<Article> selectAllArticle(@Param("begin")int begin,@Param("size") int size, @Param("articleName")String articleName);

    void addAtricle(@Param("article")Article article);

    void delateArticle(@Param("ids")Integer[] ids);

    void updateArticle(@Param("article")Article article);


    List<Article> selectHomePageAtricle();

    List<Article> selectGuruArticle(@Param("userId")Integer userId);

    List<Article> appSelectAllArticle();



    List<Article> selectAllAriticleLucene();
}
